package com.lvmama.rhino.pojo.comment.query;

import com.lvmama.rhino.pojo.base.BaseQuery;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;

/**
 * @Author:caoyong
 * @Description:
 * @Date：2017/9/22
 */
public class ProductRankPageQuery extends BaseQuery {

    private static final long serialVersionUID = 9072020730361875334L;
    private Date startTime; // 开始时间
    private Date endTime; // 截止时间
    private String productId; // 产品id
    private String categoryId; // 品类
    private String commentType; // 评论类型，对应EnumForComment
    private String commentTypeName; // 评论类型名称
    private Integer selectedTime;//选择的时间1,7,31
    private Integer days;//最近少天
    private String flag; //是否从其它页面跳转标志，是：1
    private String returnUrl;//返回的url
    private String chooseTime; // 页面选择的时间
    private String categoryName;

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = StringUtils.isNotBlank(productId) ? productId : null;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = StringUtils.isNotBlank(categoryId) ? categoryId : null;
    }

    public String getCommentType() {
        return commentType;
    }

    public void setCommentType(String commentType) {
        this.commentType = commentType;
    }

    public Integer getSelectedTime() {
        return selectedTime;
    }

    public void setSelectedTime(Integer selectedTime) {
        this.selectedTime = selectedTime;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public String getChooseTime() {
        return chooseTime;
    }

    public void setChooseTime(String chooseTime) {
        this.chooseTime = chooseTime;
    }

    public String getCommentTypeName() {
        return commentTypeName;
    }

    public void setCommentTypeName(String commentTypeName) {
        this.commentTypeName = commentTypeName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Override
    public String toString() {
        return "ProductRankPageQuery{" +
                "startTime=" + startTime +
                ", endTime=" + endTime +
                ", productId='" + productId + '\'' +
                ", categoryId='" + categoryId + '\'' +
                ", commentType='" + commentType + '\'' +
                ", commentTypeName='" + commentTypeName + '\'' +
                ", selectedTime=" + selectedTime +
                ", days=" + days +
                ", flag='" + flag + '\'' +
                ", returnUrl='" + returnUrl + '\'' +
                ", chooseTime='" + chooseTime + '\'' +
                '}';
    }
}
